package com.weaver.drools.business.execution.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weaver.drools.business.execution.service.IQCmnUnit18Service;
import com.weaver.drools.common.dao.QCmnUnit18Dao;
import com.weaver.drools.common.entity.QCmnUnit18;
@Service
public class QCmnUnit18ServiceImpl implements IQCmnUnit18Service {

	@Autowired
	private QCmnUnit18Dao QCmnUnit18Dao;
	@Override
	public QCmnUnit18 findById(Long unitid) {
		// TODO Auto-generated method stub
		return QCmnUnit18Dao.findQCmnUnit18ByUnitid(unitid);
	}

	@Override
	public void saveQCmnUnit18(QCmnUnit18 unit18) {
		QCmnUnit18Dao.saveOrUpdate(unit18);

	}

	@Override
	public void updateQCmnUnit18(QCmnUnit18 unit18) {
		QCmnUnit18Dao.saveOrUpdate(unit18);

	}

	@Override
	public void deleteById(Long unitid) {
		QCmnUnit18Dao.deleteById(unitid);

	}

}
